#ifndef WYZKR688RFSWHMI_H
#define WYZKR688RFSWHMI_H
#include <QObject>
#include <QWidget>

#include "_Interface/_global_datastruct.h"
#include "_Interface/_interface_hmi.h"
#include "_Interface/_interface_backend.h"
#include "Hmi/cRobotOpenGLView/robotdataview.h"
#include "Package/RobotOpenGLView/RoboticOpenGLView.h"

namespace Ui {
               class RFSWView;
               class RemoteRFSWView;
             }

class wyzkr688rfswhmi: public HmiInterface{
        Q_OBJECT
private:
    short LocalRemote;
    Ui::RFSWView* ui;
    Ui::RemoteRFSWView* remoteui;
    ST_RobotDAQData mRobot;
    ST_FswTecDAQData mTechData;
    BackendInterface* pbackendinterface;

public:
    wyzkr688rfswhmi(short Local_Remote);
    ~wyzkr688rfswhmi();

public:
    void RemoteDataRecv(QByteArray Data);
    void RemoteDataSend(QByteArray& Data);

public:
    short getBackendhandle(BackendInterface* p);
    short UiDataUpdate();
    short RobotScopeUpdate();
    short ForceScopeUpdate();

private:
    short SignalSlotConnect();

    short UiDataInit();
    short UiDataRelease();

    short ForceScopeInit();
    short ForceScopeRelease();

    short RobotScopeInit();
    short RobotScopeRelease();
};

#endif // WYZKR688RFSWHMI_H
